package com.cskaoyan.service;

import com.cskaoyan.anno.CountTime;
import com.cskaoyan.bean.User;
import org.springframework.stereotype.Service;

/**
 * @author stone
 * @date 2022/06/17 11:19
 */
@Service
public class UserServiceImpl implements UserService{
    @Override
    public void sayHello(String username) {
        System.out.println("hello " + username);
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public User sayHello2(String username) {
        return null;
    }

    @Override
    public User sayHello3(String username) {
        return null;
    }

    @Override
    public User sayHello3() {
        return null;
    }

    @Override
    public User sayHello4(User user) {
        return null;
    }

    @Override
    public User sayHello4(User user, String username) {
        return null;
    }

    @CountTime
    @Override
    public void sayGoodbye(String username) {
        System.out.println("byebye le");
    }
}
